home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1997 December / PC Pro December 1997 CD-Rom coverdisc.iso / symantec / dbAnywh / JAVA.BIN / CLASSES.ZIP / java / awt / Dimension.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-12-14  |  863 b   |  24 lines

  1. package java.awt;
  2.  
  3. public class Dimension {
  4.    public int width;
  5.    public int height;
  6.  
  7.    public Dimension() {
  8.       this(0, 0);
  9.    }
  10.  
  11.    public Dimension(Dimension var1) {
  12.       this(var1.width, var1.height);
  13.    }
  14.  
  15.    public Dimension(int var1, int var2) {
  16.       this.width = var1;
  17.       this.height = var2;
  18.    }
  19.  
  20.    public String toString() {
  21.       return this.getClass().getName() + "[width=" + this.width + ",height=" + this.height + "]";
  22.    }
  23. }
  24.